package com.cq.hd.product.api.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class MyPrizeRedPacketBillPageVo implements Serializable {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "商家id")
    private Long businessId;

    @ApiModelProperty(value = "红包标题")
    private String title;

    @ApiModelProperty(value = "红包金额")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal amt;

    @ApiModelProperty(value = "状态(1-未使用，2-已使用，3-已核销，4-已过期)")
    private Integer state;

    @ApiModelProperty(value = "领取时间")
    @JSONField(format="yyyy.MM.dd")
    private LocalDateTime receiveTime;

    @ApiModelProperty(value = "过期时间")
    @JSONField(format="yyyy.MM.dd")
    private LocalDateTime expireTime;

    @ApiModelProperty(value = "满多少可以使用：0表示无门槛")
    private BigDecimal fullAmount;
}
